var stars =
    {
    Mercury:
        {
        dia: 70*1, //直径(km)(/200 换算成半径再缩放)
        sd: 3.5*500,//0.39,  //日距(约1.496亿km,天文单位)
        rea: 7.0048, //轨道倾角(度)  需换算成弧度  1弧度=180/π 度    1度=π/180 弧度
        roa: 0,      //自转倾角(度)
        rep: 87.97,  //公转周期(天)
        rop: 58.65,  //自转周期(天)
        ref: 0.11    //折射率
    },
    Venus  :
        {
        dia: 105*1,
        sd: 4.5*500,//0.72,
        rea: 3.9347,
        roa: 177.33,
        rep: 224.7,
        rop: 243,
        ref: 0.65
    },
    Earth  :
        {
        dia: 156*1,
        sd : 6*500,//1,
        rea: -3,
        roa: 23.45,
        rep: 365.26,
        rop: 0.997222222,//0.997222222
        ref: 0.37
    },
    Mars   :
        {
        dia: 144*1,
        sd : 8*500,//1.52,
        rea: 1.8506,
        roa: 25.19,
        rep: 686.98,
        rop: 1.0257, //1.025694444
        ref: 0.15
    },
    Jupiter:
        {
        dia: 400*1,
        sd : 11*500,//5.2,
        rea: 1.3053,
        roa: 3.08,
        rep: 4331.9836,
        rop: 5.409722222, //0.409722222
        ref: 0.52
    },
    Saturn :
        {
        dia: 350*1,
        sd : 15*500,//9.54,
        rea: 2.4845,
        roa: 26.73,
        rep: 10760.5596,
        rop: 5.44375,
        ref: 0.47
    },
    Uranus :
        {
        dia: 300*1,
        sd : 18*500,//19.18,
        rea: 0.7699,
        roa: 97.92,
        rep: 30685.4926,
        rop: 8.718055556,  //0.718055556
        ref: 0.51
    },
    Neptune:
        {
        dia: 223*1,
        sd : 22*500,//30.06,
        rea: 1.7692,
        roa: 28.8,
        rep: 60191.1954,
        rop: 11.671527778, //0.671527778
        ref: 0.41
    },
    Sun    :
        {
        dia: 1000*1,
        sd : 0,
        rea: 0,
        roa: 0,
        rep: 0,
        rop: 3000,
        ref: 1
    },
    JupiterMoon1 :
        {
        dia: 30,
        sd : 33.56955528979999E-06 *20000000,
        rea: 0.1,
        roa: 1,
        rep: 100,
        rop: 1,
        ref: 0.12
    },
    JupiterMoon2   :
        {
        dia: 39,
        sd : 30.56955528979999E-06 *20000000,   //2.56955528979999E-06 到地球距离(约1.496亿km,天文单位)
        rea: -0.3,
        roa: 1,
        rep: 200,
        rop: 1,
        ref: 0.12
    },
    JupiterMoon3 :
        {
        dia: 32,
        sd : 40.56955528979999E-06 *20000000,   //2.56955528979999E-06 到地球距离(约1.496亿km,天文单位)
        rea: -0.2,
        roa: 1,
        rep: 300,
        rop: 1,
        ref: 0.12
    },
    Moon   :
        {
        dia: 24*1.5,
        sd : 20.56955528979999E-06 *20000000,
        rea: 20,
        roa: 1,
        rep: 27.32,
        rop: 29,
        ref: 0.12
    }
};

var solar_limits;

function initData()
{
    var stars_list = [stars.Mercury,stars.Venus,stars.Earth,stars.Mars,stars.Jupiter,stars.Saturn,stars.Uranus,stars.Neptune,stars.Sun,stars.Moon];

    var sun_radius = stars_list[8].dia ;
    var earth_radius = stars_list[2].dia ;

    var temp_radius;
    var len = stars_list.length;

    var start = new Date().getTime();
    for(var i=0;i<len;i++)
    {
        stars_list[i].dia = parseFloat((stars_list[i].dia).toFixed(2));
        stars_list[i].sd  = parseFloat((stars_list[i].sd).toFixed(2));
        stars_list[i].rea = parseFloat((stars_list[i].rea * (Math.PI/180)).toFixed(2));
        stars_list[i].roa = parseFloat((stars_list[i].roa * (Math.PI/180)).toFixed(2));
        stars_list[i].rep = parseFloat((stars_list[i].rep).toFixed(2));
        stars_list[i].rop = parseFloat((stars_list[i].rop).toFixed(2));
    }
    var end = new Date().getTime();
    console.log(start);
    console.log(end);
    solar_limits = (stars_list[8].dia + stars_list[7].sd);
}


